<?php 
/* SVN FILE: $Id$ */
/* User Test cases generated on: 2009-03-25 04:03:32 : 1237970492*/
App::import('Model', 'User');

class UserTestCase extends CakeTestCase {
	var $User = null;
	var $fixtures = array('app.user', 'app.pais', 'app.grupo', 'app.ciudad', 'app.cambio');

	function startTest() {
		$this->User =& ClassRegistry::init('User');
	}

	function testUserInstance() {
		$this->assertTrue(is_a($this->User, 'User'));
	}

	function testUserFind() {
		$this->User->recursive = -1;
		$results = $this->User->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('User' => array(
			'USER'  => 1,
			'pais_id'  => 1,
			'grupo_id'  => 1,
			'ciudad_id'  => 1,
			'numero'  => 1,
			'apelllido'  => 'Lorem ipsum dolor sit amet',
			'username'  => 'Lorem ipsum dolor sit amet',
			'password'  => 'Lorem ipsum dolor sit amet',
			'nacimiento'  => '2009-03-25',
			'sexo'  => 'Lorem ipsum dolor sit ame',
			'estado'  => 1,
			'puntos'  => 1,
			'fechaultimopago'  => '2009-03-25',
			'baneado'  => 1,
			'duracionsubscripcion'  => '2009-03-25',
			'ia'  => 1,
			'direccion'  => 'Lorem ipsum dolor sit amet',
			'telefono'  => 'Lorem ipsum dolor sit amet',
			'email'  => 'Lorem ipsum dolor sit amet',
			'foto'  => 'Lorem ipsum dolor sit amet'
			));
		$this->assertEqual($results, $expected);
	}
}
?>